﻿using UnityEngine;
using System.Collections;

public class Background : MonoBehaviour {
	// How fast the texture will scroll
	public float speed;
	void Update () {
		renderer.material.mainTextureOffset = new Vector2 (Time.time * speed, 0f);
	}
}
